<?php

namespace IDock\Insurance\AICS\Request;

use IDock\Insurance\AICS\Request\AllAICSRequest;
use IDock\Insurance\AICS\Response\PolicyPaymentResponse;
use IDock\Visitor\PolicyPaymentVisitor;

class GetPaymentUrlRequest extends AllAICSRequest
{
    public $code = 'newGetPayNoService';
    public $envelopeName = 'tns:getPayTransNo';

    protected $urlTip = '缴费接口';

    protected $response = PolicyPaymentResponse::class;

    /**
     * @var PolicyPaymentVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        $param = [
            "payTerminal" => '0',//支付终端 暂时默认手机端
            "orderCode" => $this->visitor->inquiryNo,
            "callPageUrl" => '',
            "payType" => '05',//支付方式 暂时默认微信支付 2500121910200956 50580036420240000001
        ];
        return $param;
    }


}
